home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / python-debian / examples / changelog / simple_changelog < prev   
Encoding:
Text File  |  2008-08-09  |  1.4 KB  |  37 lines

  1. #!/usr/bin/python
  2. # simple_changelog - A simple example of how to use the changelog.py module.
  3. # Copyright (C) 2006 James Westby <jw+debian@jameswestby.net>
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18.  
  19. from debian_bundle.changelog import Changelog, Version
  20.  
  21. changelog = Changelog()
  22.  
  23. changelog.new_block(package='python-debian',
  24.                     version=Version('0.1'),
  25.                     distributions='unstable',
  26.                     urgency='low',
  27.                     author='James Westby <jw+debian@jameswestby.net>',
  28.                     date='Thu,  3 Aug 2006 19:16:22 +0100',
  29.                     )
  30.  
  31. changelog.add_change('');
  32. changelog.add_change('  * Welcome to changelog.py');
  33. changelog.add_change('');
  34.  
  35. print changelog
  36.  
  37.